//
//  GetTeamInfo.m
//  NBAPro
//
//  Created by 李广松 on 16/6/26.
//  Copyright © 2016年 WYH. All rights reserved.
//

#import "GetInfo.h"

@implementation GetInfo

+ (UIColor *)getTeamColorWithTeamName:(NSString *)team {
    
    if ([team isEqualToString:@"Hawks"])
        return [UIColor colorWithRed:224/255 green:58/255.0 blue:62/255.0 alpha:1];
    else if ([team isEqualToString:@"Bulls"])
        return [UIColor colorWithRed:206/255.0 green:17/255.0 blue:65/255.0 alpha:1];
    else if ([team isEqualToString:@"Nets"])
        return [UIColor colorWithRed:51/255.0 green:56/255.0 blue:70/255.0 alpha:1];
    else if ([team isEqualToString:@"Celtics"])
        return [UIColor colorWithRed:0/255.0 green:131/255.0 blue:72/255.0 alpha:1];
    else if ([team isEqualToString:@"Hornets"])
        return [UIColor colorWithRed:0/255.0 green:140/255.0 blue:168/255.0 alpha:1];
    else if ([team isEqualToString:@"Cavaliers"])
        return [UIColor colorWithRed:134/255.0 green:0/255.0 blue:56/255.0 alpha:1];
    else if ([team isEqualToString:@"Mavericks"])
        return [UIColor colorWithRed:0/255.0 green:125/255.0 blue:197/255.0 alpha:1];
    else if ([team isEqualToString:@"Nuggets"])
        return [UIColor colorWithRed:255/255.0 green:178/255.0 blue:15/255.0 alpha:1];
    else if ([team isEqualToString:@"Pistons"])
        return [UIColor colorWithRed:0/255.0 green:107/255.0 blue:182/255.0 alpha:1];
    else if ([team isEqualToString:@"Warriors"])
        return [UIColor colorWithRed:253/255.0 green:185/255.0 blue:38/255.0 alpha:1];
    else if ([team isEqualToString:@"Rockets"])
        return [UIColor colorWithRed:206/255.0 green:17/255.0 blue:65/255.0 alpha:1];
    else if ([team isEqualToString:@"Pacers"])
        return [UIColor colorWithRed:255/255.0 green:198/255.0 blue:51/255.0 alpha:1];
    else if ([team isEqualToString:@"Clippers"])
        return [UIColor colorWithRed:190/255.0 green:43/255.0 blue:59/255.0 alpha:1];
    else if ([team isEqualToString:@"Lakers"])
        return [UIColor colorWithRed:85/255.0 green:37/255.0 blue:130/255.0 alpha:1];
    else if ([team isEqualToString:@"Grizzlies"])
        return [UIColor colorWithRed:97/255.0 green:137/255.0 blue:185/255.0 alpha:1];
    else if ([team isEqualToString:@"Heat"])
        return [UIColor colorWithRed:152/255.0 green:0/255.0 blue:46/255.0 alpha:1];
    else if ([team isEqualToString:@"Bucks"])
        return [UIColor colorWithRed:0/255.0 green:71/255.0 blue:27/255.0 alpha:1];
    else if ([team isEqualToString:@"Timberwolves"])
        return [UIColor colorWithRed:0/255.0 green:80/255.0 blue:131/255.0 alpha:1];
    else if ([team isEqualToString:@"Pelicans"])
        return [UIColor colorWithRed:0/255.0 green:43/255.0 blue:92/255.0 alpha:1];
    else if ([team isEqualToString:@"Knicks"])
        return [UIColor colorWithRed:245/255.0 green:132/255.0 blue:38/255.0 alpha:1];
    else if ([team isEqualToString:@"Thunder"])
        return [UIColor colorWithRed:240/255.0 green:81/255.0 blue:51/255.0 alpha:1];
    else if ([team isEqualToString:@"Magic"])
        return [UIColor colorWithRed:0/255.0 green:125/255.0 blue:197/255.0 alpha:1];
    else if ([team isEqualToString:@"76ers"])
        return [UIColor colorWithRed:0/255.0 green:107/255.0 blue:182/255.0 alpha:1];
    else if ([team isEqualToString:@"Suns"])
        return [UIColor colorWithRed:229/255.0 green:96/255.0 blue:32/255.0 alpha:1];
    else if ([team isEqualToString:@"Trail Blazers"])
        return [UIColor colorWithRed:21/255.0 green:21/255.0 blue:18/255.0 alpha:1];
    else if ([team isEqualToString:@"Kings"])
        return [UIColor colorWithRed:114/255.0 green:76/255.0 blue:159/255.0 alpha:1];
    else if ([team isEqualToString:@"Spurs"])
        return [UIColor colorWithRed:182/255.0 green:191/255.0 blue:191/255.0 alpha:1];
    else if ([team isEqualToString:@"Raptors"])
        return [UIColor colorWithRed:206/255.0 green:17/255.0 blue:65/255.0 alpha:1];
    else if ([team isEqualToString:@"Jazz"])
        return [UIColor colorWithRed:0/255.0 green:71/255.0 blue:27/255.0 alpha:1];
    else if ([team isEqualToString:@"Wizards"])
        return [UIColor colorWithRed:245/255.0 green:0/255.0 blue:47/255.0 alpha:1];
    else
        return [UIColor colorWithRed:187/255.0 green:39/255.0 blue:50/255.0 alpha:1];

}

@end
